﻿using System.Collections.Generic;
using System.Linq;
using Xunit;

namespace Gamemaster.Console
{
    public class CommandsTests
    {
        [Fact]
        public void AssembleRoll()
        {
            IEnumerable<ICommand> commands = Commands.Assemble("roll");

            Assert.IsType<RollCommand>(commands.FirstOrDefault());
        }

        [Fact]
        public void NameCommand()
        {
            IEnumerable<ICommand> commands = Commands.Assemble("name");

            Assert.IsType<NameCommand>(commands.FirstOrDefault());
        }
    }
}
